#ifndef __UNIVERSAL_UTIL_H__
#define __UNIVERSAL_UTIL_H__

#define LOW_BYTE(Data) (unsigned char)(0x00ff & Data)
#define HIGH_BYTE(Data) (unsigned char)((0xff00 & Data)>>8)

extern void BubbleFloat(float a[], uint32_t n);
extern void swap(uint8_t *buf1, uint8_t *buf2, uint32_t width);
extern void BubbleSort(void *base, uint32_t sz, uint32_t width, int (*cmp)(void *e1, void *e2));

#endif /* __UNIVERSAL_UTIL_H__ */
